package com.czxy.service;

import com.czxy.dao.CategoryMapper;
import com.czxy.domain.Category;
import com.czxy.utils.MyBatisUtils;

import java.util.List;

public class CategoryService {

    public List<Category> findAll(){
        CategoryMapper mapper = MyBatisUtils.getMapper(CategoryMapper.class);
        List<Category> list = mapper.selectAll();
        MyBatisUtils.close();
        return list;
    }
}
